package cn.iocoder.boot.mapper;

import cn.iocoder.boot.entity.ComponentStock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ComponentStockMapper extends BaseMapper<ComponentStock> {
    List<ComponentStock> getListByModels(List<String> models);

    // 2. 新增方法：基于 unique_id 插入或更新（纯注解实现）
    void saveComponentStockOfUniqueKey(ComponentStock componentStock);
}
